#if !defined(AFX_XSPHONEACTIVEXDLGAUXWORKAPPROVE_H__B10497DB_36DE_44FF_B1CD_73BE7B26A935__INCLUDED_)
#define AFX_XSPHONEACTIVEXDLGAUXWORKAPPROVE_H__B10497DB_36DE_44FF_B1CD_73BE7B26A935__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "ResourceBundle.h"

class CXSPhoneActiveXCtrl;

// XSPhoneActiveXDlgAuxworkApprove.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CXSPhoneActiveXDlgAuxworkApprove dialog

class CXSPhoneActiveXDlgAuxworkApprove : public CDialog
{
DECLARE_EASYSIZE
// Construction
public:
	CXSPhoneActiveXDlgAuxworkApprove(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CXSPhoneActiveXDlgAuxworkApprove)
	enum { IDD = IDD_AUXWORK_APPROVE };
	CListCtrl m_ctlAuxworkRequestList;
	//}}AFX_DATA

	CResourceBundle m_myResourceBundle;
	
	CXSPhoneActiveXCtrl *m_pActiveXCtrl;
	
	CString m_strSelAgentId;
	
	CString GetIPAddrByAgentId(CString strAgentId);
	void RemoveItemByAgentId(CString strAgentId);
	void RemoveApply(CString strAgentId);
	void InsertApply(CString strAgentId, CString strReason, CString strIPAddr);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CXSPhoneActiveXDlgAuxworkApprove)
protected:
	virtual BOOL OnInitDialog();
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CXSPhoneActiveXDlgAuxworkApprove)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnSizing(UINT fwSide, LPRECT pRect);
	afx_msg void OnClickAuxworkrequestList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnButtonSucc();
	afx_msg void OnButtonFail();
	afx_msg void OnButtonClose();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_XSPHONEACTIVEXDLGAUXWORKAPPROVE_H__B10497DB_36DE_44FF_B1CD_73BE7B26A935__INCLUDED_)
